package com.the_last.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @TableName product
 */
@TableName(value = "product")
@Data
public class Product {
    /**
     * 商品ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    /**
     * 商品名称
     */
    private String name;
    
    /**
     * 商品图片路径或URL
     */
    private String imageUrl;
    
    /**
     * 商品分类ID
     */
    private Integer categoryId;
    
    /**
     * 库存
     */
    private Integer stock;
    
    /**
     * 当前售价
     */
    private BigDecimal currentPrice;
    
    /**
     * 销量
     */
    private Integer sales;
    
    private Integer deleted;
}